<template>
  <div>
    <h1>我是banner</h1>
    <button @click='back'>后退</button>
    <button @click='forward'>前进</button>
    <button @click="test">测试go</button>
  </div>
  
</template>
<script>
export default {
  name: "Home",
  methods:{
    back(){
      this.$router.back();

    },
    forward(){
      this.$router.forward()

    },
    test(){
      this.$router.go()
    }
  }
};
</script>

